package com.medical.app.controller;

import com.medical.app.common.dto.ReportTaleDto;
import com.medical.app.service.ReportTaleService;
import com.qf.medical.response.ResponseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/*
 * @Date : 2024/4/30 上午9:50
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */
@Api(tags = "报告模块接口pai")
@RestController
@RequestMapping("/report")
public class ReportTaleController {

    @Resource
    private ReportTaleService reportTaleService;

    @GetMapping("/list")
    @ApiOperation(value = "展示所有报告类型")
    public ResponseEntity<List<ReportTaleDto>> list() {
        List<ReportTaleDto> list = reportTaleService.list();
        return ResponseEntity.success(list);
    }

}
